import request from "@/utils/request";
/*
获取菜单树
 */
export  function getMenuTree() {
    return request({
        url:"/menu/getMenuTree",
        method:"get",
    })
}
/*
根据ID删除菜单
 */
export function deleteMenuById(id) {
    return request({
        url:"/menu/deleteMenuById",
        method:"get",
        params:{
            id
        }
    })
}
/*
添加菜单
 */
export function addMenu(menu) {
    return request({
        url:"/menu/addMenu",
        method:"post",
        data:menu
    })
}
/*
编辑菜单
 */
export function editMenu(menu) {
    return request({
        url:"/menu/editMenu",
        method:"post",
        data:menu
    })
}


